package com.zhenhe.core.common.entity;


import org.apache.ibatis.type.Alias;
import org.hibernate.validator.constraints.Length;

import com.zhenhe.core.common.entity.DataEntity;

@Alias("TUser")
public class TUser extends DataEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3441678410273674001L;

	private String userName;
	
	@Length(min=5,max=20, message="{module.user.username.error}")
	private String userAccount;
	
	//@JsonIgnore
	private String password;

	private Integer userRole;
	
	private String cellphone;
	
	private String userCompany;
	
	private String userDepartment;
	
	private int deleteFlag;
	
	private String loginToken;
	
	private Long tokenTime;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserAccount() {
		return userAccount;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Integer getUserRole() {
		return userRole;
	}

	public void setUserRole(Integer userRole) {
		this.userRole = userRole;
	}

	public String getCellphone() {
		return cellphone;
	}

	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}

	public String getUserCompany() {
		return userCompany;
	}

	public void setUserCompany(String userCompany) {
		this.userCompany = userCompany;
	}

	public String getUserDepartment() {
		return userDepartment;
	}

	public void setUserDepartment(String userDepartment) {
		this.userDepartment = userDepartment;
	}

	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public String getLoginToken() {
		return loginToken;
	}

	public void setLoginToken(String loginToken) {
		this.loginToken = loginToken;
	}

	public Long getTokenTime() {
		return tokenTime;
	}

	public void setTokenTime(Long tokenTime) {
		this.tokenTime = tokenTime;
	}

}